package com.lmx.healthcode.ui.adapter;

import android.content.Context;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.lmx.healthcode.common.base.BaseAdapterRv;
import com.lmx.healthcode.common.base.BaseHolderRv;
import com.lmx.healthcode.model.bean.Student;
import com.lmx.healthcode.ui.holder.StudentHolder;

import java.util.List;

/**
 * @author Leung
 * @date 2020/9/11 19:22
 */
public class StudentAdapter extends BaseAdapterRv<Student> {

    public StudentAdapter(Context context, List<Student> listData) {
        super(context, listData);
    }

    @Override
    public BaseHolderRv<Student> createViewHolder(Context context, ViewGroup parent, int viewType) {
        return new StudentHolder(context, parent, this, viewType);
    }
}
